package com.pandora.credit.mongo.entity;

import com.fasterxml.jackson.annotation.JsonProperty;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.Date;

/**
 * @author developer
 */
@Document(collection = "H5s")
public class H5Report {

    public H5Report() {
    }

    @Id
    @JsonProperty(value = "_id")
    private long id;

    @Field(value = "created_time")
    @JsonProperty(value = "created_time")
    private String createdTime;

    @Field(value = "customer_id")
    @JsonProperty(value = "customer_id")
    private long customerId;

    @Field(value = "id_card")
    @JsonProperty(value = "id_card")
    private String idCard;

    private String mobile;
    private String name;
    private String type;
    private AbstractReport report;

    @Field(value = "meta_data")
    @JsonProperty(value = "meta_data")
    private ReportMetaData metaData;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(String createdTime) {
        this.createdTime = createdTime;
    }

    public long getCustomerId() {
        return customerId;
    }

    public void setCustomerId(long customerId) {
        this.customerId = customerId;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public AbstractReport getReport() {
        return report;
    }

    public void setReport(AbstractReport report) {
        this.report = report;
    }

    public ReportMetaData getMetaData() {
        return metaData;
    }

    public void setMetaData(ReportMetaData metaData) {
        this.metaData = metaData;
    }
}
